import request from "@/utils/request";

// 查询水质月监测数据列表
export function listWaterquality(query) {
  return request({
    url: "/datas/waterquality/list",
    method: "get",
    params: query,
  });
}

// 查询水质月监测数据详细
export function getWaterquality(ID) {
  return request({
    url: "/datas/waterquality/" + ID,
    method: "get",
  });
}

// 新增水质月监测数据
export function addWaterquality(data) {
  return request({
    url: "/datas/waterquality",
    method: "post",
    data: data,
  });
}

// 修改水质月监测数据
export function updateWaterquality(data) {
  return request({
    url: "/datas/waterquality",
    method: "put",
    data: data,
  });
}

// 删除水质月监测数据
export function delWaterquality(ID) {
  return request({
    url: "/datas/waterquality/" + ID,
    method: "delete",
  });
}
